import http from '../common/axios.js'

//添加预约记录
function insert(data){
		let url='/user/yuyue/insert'
		return http.post(url,data).then(res=>{
			return res;
		})	
}

//获取预约记录
function get(){
		let url='/user/yuyue/get'
		return http.get(url).then(res=>{
			return res;
		})	
}

//获取预约记录
function cancel(id){
		let url='/user/yuyue/cancel?id='+id
		return http.get(url).then(res=>{
			return res;
		})	
}

export default{
	insert,
	get,
	cancel
}